<?php

namespace App\Http\Controllers;

use Illuminate\Routing\Controller;
use App\Libraries\Error;

class ApiController extends Controller
{
    public function __construct()
    {
        header("Access-Control-Allow-Origin: *");
    }


    public function return($data)
    {
        return showError(Error::ERR_OK,$data,"成功");
    }
}
